package com.ruoyi.crm.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.crm.domain.vo.ReportVO;
import com.ruoyi.crm.service.IReportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/crm/report")
public class ReportController {

    @Resource
    private IReportService iReportService;

    @GetMapping("/statistics")
    public AjaxResult getData(ReportVO reportVo){
        return AjaxResult.success(iReportService.getData(reportVo));
    }
}
